gdk/wayland: Make more matched settings from the portal as valid
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Feb 2021 15:36:19 +0000 (16:36 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Feb 2021 15:41:13 +0000 (16:41 +0100)
commit75ae0e04e14cb475cb0c7175450071c3d54634be
treee1bbc0c26fcbd01e37600f9cf97e0f94f1123128
parent1f284fcd706de5b0b8c54fee3ff61880caf1d167
gdk/wayland: Make more matched settings from the portal as valid

Commit 97b5fad1315 was a forward port from a gtk3 patch, but the hunk
was applied on the wrong bits of code.

Ensure the initialization paths also do mark settings read from the
portal as valid, so the checks for optional/newer settings actually have
the expected result. It is also desirable to mark settings as valid
after configuration changes (as that patch did effectively do), but not
enough to fix all situations.
gdk/wayland/gdkdisplay-wayland.c